package net.wanho.shop.mapper;

import net.wanho.shop.po.Attribute;
import net.wanho.shop.vo.AttributeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 属性表 Mapper 接口
 * </p>
 *
 * @author 猛虎王
 * @since 2024-12-24
 */
@Mapper
public interface AttributeMapper {

    List<Attribute> select(Attribute attribute);

    Attribute selectById(Serializable attrId);

    void insert(Attribute attribute);

    void update(Attribute attribute);

    void deleteById(Serializable attrId);

    void deleteByIds(String[] split);

    void updateDeleteTimeByCayIds(List<Integer> deleteList);

    List<AttributeVo> selectByCatIdAndSel(@Param("catId") Integer catId, @Param("sel") String sel);

    void updateDeleteTime(Integer attrId);

    void insertCatId(@Param("catId") Integer catId, @Param("attrSel") String attrSel, @Param("attrName") String attrName);
}
